//
//  FMTableView.h
//  WOM
//
//  Created by leeqb on 3/4/14.
//  Copyright (c) 2014 cst. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FMTableView;

@protocol CustTableViewDelegate <NSObject>

@optional
- (void)refreshTableData:(FMTableView *)tableview;
- (void)loadNextPage:(UITableView *)tableview nextPageNum:(NSInteger)nextPageNum;

@end

@interface FMTableView : UITableView
{
    UIRefreshControl    *_refreshControl;
    BOOL                _isNextPageButtonShow;
    CGFloat             _footerHeight;
}

@property (nonatomic, assign) id<CustTableViewDelegate> custDelegate;
@property (nonatomic, assign) NSInteger pageNum;
@property (nonatomic, assign) BOOL showRefreshControl;

- (void)tableDataRefreshed:(BOOL)isLastPage;
- (void)showNextPageButton;
- (void)loadNextPage;

@end
